package com.singularity.common.domain.entity;


import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* 码表
* @TableName code_table
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("code_table")
public class CodeTable implements Serializable {


    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
    * 标题.
    */

    private String title;
    /**
    * 描述.
    */

    private String description;
    /**
    * 上级key.
    */

    private String parentKey;
    /**
    * key.
    */

    private String key;
    /**
    * value.
    */

    private String value;
    /**
    * 排序.
    */
    @ApiModelProperty("排序.")
    private Integer sort;
    /**
    * 允许修改.0：否 ，1：是
    */

    private Integer allowModify;
    /**
    * 
    */
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

}
